'''
求100之内偶数的和
num % 2==0------偶数

'''

num=0
he=0
while num<=100:
    if num%2==0:
        he+=num
    num+=1
print(he)


'''
奇数和  
'''
num=0
he=0
while num<=100:
    if num%2==1:
        he+=num
    num+=1
print(he)
